<template>
	<u-navbar :title="title" placeholder autoBack @rightClick="handleClickRight" >
		<view class="text-blue" slot="left">
			<text class="cuIcon-back">{{leftText}}</text>
		</view>
		<view class="text-blue" slot="right">
			<text>{{rightText}}</text>
		</view>
	</u-navbar>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: ''
			},
			leftText: {
				type: String,
				default: '返回'
			},
			rightText: {
				type: String,
				default: ''
			}
		},
		methods: {
			handleClickRight() {
				this.$emit('right')
			}
		}
	}
</script>

<style>
</style>